package cn.edu.ujn.food.dao;

import cn.edu.ujn.food.entity.Usercoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface UsercouponDao {



    List<Usercoupon> queryAllByLimit(Usercoupon usercoupon, @Param("pageable") Pageable pageable);

    long count(Usercoupon usercoupon);

    int insert(Usercoupon usercoupon);

    int insertBatch(@Param("entities") List<Usercoupon> entities);

    int insertOrUpdateBatch(@Param("entities") List<Usercoupon> entities);

    int update(Usercoupon usercoupon);

    int deleteById(Integer usercouId);

    List<Usercoupon> selectAll(Usercoupon usercoupon);

    Integer selectCount();

    Usercoupon queryById(Integer usercouId);
}

